package com.lecture.java8.node;

import java.util.List;

/**
 * @author luyn
 * @version 1.0
 * @description
 * @date 2022/7/4 16:51
 */
public interface INode {

    //主键
    Long getId();

    //父主键
    Long getParentId();

    //子孙节点
    List<INode> getChildren();

    //是否有子孙节点
    default Boolean getHasChildren() {
        return false;
    }
}
